﻿<UserControl x:Class="WPForms.Phone.View.GeoLocation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:maps="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignWidth="480">        
    <Grid x:Name="LayoutRoot">        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <TextBlock Text="{Binding Model.Label}" VerticalAlignment="Center"/>
        <!--maps:Map Center="{Binding Center, Mode=TwoWay}" ZoomLevel="14" CredentialsProvider=""/-->
        <TextBox IsEnabled="{Binding Model.IsEnabled}" AcceptsReturn="True" Grid.Column="1" VerticalAlignment="Stretch" Text="{Binding Location, Mode=OneWay}" TextWrapping="Wrap"/>
        <Button Grid.Column="2" Content="current" Command="{Binding UseCurrentCommand}"/>
    </Grid>
</UserControl>
